home *** CD-ROM | disk | FTP | other *** search
/ Nautilus 1992 July / Nautilus-3-8 / Nautilus-3-8.bin / Tools & Utilities / Techy Stuff / Frontier Scripts / DocServer ƒ / DocServer Source Text1 < prev    next >
Encoding:
Text File  |  1992-03-04  |  759 b   |  16 lines

  1.  
  2. Verb    table.uniqueName
  3. Syntax    table.uniqueName (prefix, tableAdr)
  4. Parameters    prefix is a string that's used in contructing the unique name.
  5. tableAdr is the address of a table that's about to get a new element.
  6. Action    Iterates over names in the table to return a name that isn't in use.
  7. Returns    An address of an item in the table that doesn't exist, it's safe to assign to.
  8. Examples    table.uniqueName ("item", @scratchpad)
  9.     ╟ scratchpad.item1
  10. table.uniqueName ("item", @scratchpad)^ = 12
  11.     ╟ 12
  12. table.uniqueName ("item", @scratchpad)
  13.     ╟ scratchpad.item2
  14. Notes    Use this verb when you're adding an item to a table that contains several objects of the same type.
  15. An example: you could use this verb to safely add an item to a table of file paths or email accounts.
  16.